package zzj.campus_book_sharing_platform.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import zzj.campus_book_sharing_platform.Entity.Post;
import zzj.campus_book_sharing_platform.domain.dto.PostDto;

import javax.servlet.http.HttpSession;

public interface PostService extends IService<Post> {
    IPage queryAll(Integer currentPage);

    Post selectById(String postId);

    int insert(PostDto postDto, HttpSession session);

    int deleteById(String postId,HttpSession session);
}
